const request = function(options){
  let url = 'https://www.uinav.com'+options.url
  let method = options.url?options.url:"GET"
  return new Promise((resolve,reject)=>{
    wx.request({
      ...options,
      url,
      success(res){
        resolve(res)
      },
      fail(err){
        reject(err)
      }
    })
  })
}
export default request;